﻿<Window x:Class="SlideShowDFG2.FtpConnectionWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:properties="clr-namespace:SlideShowDFG2.Properties"
    Title="SlideShowDFG2 - FTP Connection" Height="475" Width="335" ShowInTaskbar="False" Loaded="Window_Loaded">
    <Window.Resources>
        <Style TargetType="{x:Type TextBlock}">
            <Setter Property="FontWeight" Value="Bold" />
            <Setter Property="Margin" Value="8" />
            <Setter Property="HorizontalAlignment" Value="Right" />
            <Setter Property="VerticalAlignment" Value="Center" />
        </Style>
        <Style TargetType="{x:Type TextBox}">
            <Setter Property="Margin" Value="9" />
            <Setter Property="HorizontalAlignment" Value="Left" />
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="Width" Value="160" />
        </Style>
        <Style TargetType="{x:Type Button}">
            <Setter Property="Margin" Value="10" />
        </Style>
        
        <properties:Settings x:Key="Settings" />
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="*" />
            <RowDefinition Height="*" />
            <RowDefinition Height="*" />
            <RowDefinition Height="*" />
            <RowDefinition Height="*" />
            <RowDefinition Height="*" />
            <RowDefinition Height="*" />
            <RowDefinition Height="*" />
            <RowDefinition Height="70" /> 
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="120" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        
        <TextBlock Grid.Column="0" Grid.Row="0">FTP Server:</TextBlock>
        <TextBox Grid.Column="1" Grid.Row="0" Text="{Binding Path=FtpHost}" />
        
        <TextBlock Grid.Column="0" Grid.Row="1">Port:</TextBlock>
        <TextBox Grid.Column="1" Grid.Row="1" Text="{Binding Path=FtpPort}" />
        
        <TextBlock Grid.Column="0" Grid.Row="2">Username:</TextBlock>
        <TextBox Grid.Column="1" Grid.Row="2" Text="{Binding Path=FtpUserName}" />
        
        <TextBlock Grid.Column="0" Grid.Row="3">Password:</TextBlock>
        <PasswordBox Grid.Column="1" Grid.Row="3" Margin="9" HorizontalAlignment="Left" VerticalAlignment="Center" Width="160" Name="pbPassword" />
        
        <TextBlock Grid.Column="0" Grid.Row="4">Save Directory:</TextBlock>
        <TextBox Grid.Column="1" Grid.Row="4" Text="{Binding Path=FtpSaveDir}" />
        
        <TextBlock Grid.Column="0" Grid.Row="5">Data File Location:</TextBlock>
        <TextBox Grid.Column="1" Grid.Row="5" Text="{Binding Path=FtpDataFile}" />
        
        <TextBlock Grid.Column="0" Grid.Row="6">Preview Images:</TextBlock>
        <CheckBox Grid.Column="1" Grid.Row="6" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="9" IsChecked="{Binding Path=FtpPreviewImage}" />
        
        <TextBlock Grid.Column="0" Grid.Row="7">Save Connection:</TextBlock>
        <CheckBox Grid.Column="1" Grid.Row="7" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="9" IsChecked="{Binding Path=FtpRememberConnection}" /> 
        
        <Button Grid.Column="0" Grid.Row="8" Name="btnOkay" Click="btnOkay_Click" IsDefault="True">Okay</Button>
        <Button Grid.Column="1" Grid.Row="8" Name="btnCancel" Click="btnCancel_Click" IsCancel="True">Cancel</Button>
        
        <Label Grid.Row="9" Name="lblError" Grid.ColumnSpan="2" />
    </Grid>
</Window>